page.tsx 613 B

1234567891011121314151617181920
  1. import React from 'react'
  2. import { getLocaleOnServer, useTranslation as translate } from '@/i18n/server'
  3. import Form from '@/app/components/datasets/settings/form'
  4. const Settings = async () => {
  5. const locale = getLocaleOnServer()
  6. const { t } = await translate(locale, 'dataset-settings')
  7. return (
  8. <div className='bg-white h-full overflow-y-auto'>
  9. <div className='px-6 py-3'>
  10. <div className='mb-1 text-lg font-semibold text-gray-900'>{t('title')}</div>
  11. <div className='text-sm text-gray-500'>{t('desc')}</div>
  12. </div>
  13. <Form />
  14. </div>
  15. )
  16. }
  17. export default Settings